package com.andkrup.events {
	import com.adobe.net.URI;	
	import com.andkrup.ds.IResourceLoader;	
	
	import flash.events.Event;
	
	/**
	 * @author Andkrup
	 */
	public class LoaderEvent extends Event {
		public static const ITEM_COMPLETE:String = "item complete";
		public static const QUEUE_COMPLETE:String = "queue complete";
		
		public var currentItem:Object;
		public var loader:IResourceLoader;
		public var currentItemSrc:URI;
		
		public function LoaderEvent(type : String, currentItemSrc:URI, currentItem:Object, loader:IResourceLoader, bubbles : Boolean = false, cancelable : Boolean = false) {
			super(type, bubbles, cancelable);
			this.currentItemSrc = currentItemSrc;
			this.currentItem = currentItem;
			this.loader = loader;
		}
	}
}
